package team.knowers.qzh.qzhgrame.service;

import com.baomidou.mybatisplus.extension.service.IService;
import team.knowers.qzh.qzhgrame.dao.entity.CourseContentDO;
import team.knowers.qzh.qzhgrame.dto.req.AddCourseContentReqDTO;
import team.knowers.qzh.qzhgrame.dto.req.DeleteCourseContentReqDTO;
import team.knowers.qzh.qzhgrame.dto.req.UpdateCourseContentReqDTO;
import team.knowers.qzh.qzhgrame.dto.resp.AllCourseContentRespDTO;

import java.util.List;

public interface CourseContentGrameService extends IService<CourseContentDO> {
    /**
     * 创建章节段落
     */
    int addCourseContent(AddCourseContentReqDTO req);
    /**
     * 删除章节段落
     */
    int deleteCourseContent(Long id);
    /**
     * 修改章节段落
     */
    int updateCourseContent(UpdateCourseContentReqDTO req);
    /**
     * 展示所有章节所属段落
     */
    List<AllCourseContentRespDTO> shouCourseContent(Long id);
}
